﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="index.Master" CodeBehind="EditovatUzivatele.aspx.cs" Inherits="Fotobanka.EditaceUzivatelu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Obsah" runat="server">
    
    <asp:DetailsView ID="DetailsView2" runat="server" AutoGenerateRows="False" 
        CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
        GridLines="None" Height="50px" onitemupdating="DetailsView1_ItemUpdating" 
        Width="125px">
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <CommandRowStyle BackColor="#C5BBAF" Font-Bold="True" />
        <RowStyle BackColor="#E3EAEB" />
        <FieldHeaderStyle BackColor="#D0D0D0" Font-Bold="True" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <Fields>
            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" 
                ReadOnly="True" />
            <asp:BoundField DataField="Email" HeaderText="Email" 
                SortExpression="Email" />
            <asp:BoundField DataField="FirstName" HeaderText="Jméno" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="Příjmení" 
                SortExpression="LastName" />
            <asp:BoundField DataField="Phone" HeaderText="Telefon" SortExpression="Phone" />
            <asp:BoundField DataField="Authorization" HeaderText="Autorizace" 
                SortExpression="Authorization" />
            <asp:BoundField DataField="GalleryAdmin" HeaderText="Správcovství" 
                SortExpression="GalleryAdmin" />
            <asp:BoundField DataField="MobilPhone" HeaderText="Mobil" 
                SortExpression="MobilPhone" />
            <asp:BoundField DataField="Icq" HeaderText="Icq" SortExpression="Icq" />
            <asp:BoundField DataField="Skype" HeaderText="Skype" SortExpression="Skype" />
            <asp:CommandField ShowEditButton="True" />
        </Fields>
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:DetailsView>
    <br />
    <asp:Label ID="errors" runat="server" ForeColor="Red"></asp:Label>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="Fotobanka.UserObject" SelectMethod="SelectUserDetail" 
        TypeName="Fotobanka.UserManager" UpdateMethod="UpdateUserDetail">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Ovladaci_panel" runat="server">
</asp:Content>